package com.ldk.springboot2021.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("tb_order_door")
public class Order_Door {
    @TableId(type = IdType.AUTO)
    private int id;
    @TableField("door_id")
    private int doorId;
    @TableField("order_no")
    private String orderNo;
    @TableField("order_type")
    private String orderType;
    @TableField("person_num")
    private int personNum;
    private String cashier;
    @TableField("create_time")
    @DateTimeFormat(pattern = "YY-MM-dd")
    private Date createTime;
    private Date endTime;
    @TableField("payment_type")
    private String paymentType;
    private double price;
    private Date created;
    private Date updated;
}
